home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / invest / about.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  1.7 KB  |  37 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from os.path import join
  5. from gettext import gettext as _
  6. from invest.defs import VERSION
  7. import invest
  8. import gtk
  9. import gtk.gdk as gtk
  10. from gnome import url_show
  11. gtk.about_dialog_set_email_hook((lambda dialog, email: url_show('mailto:%s' % email)))
  12. invest_logo = None
  13.  
  14. try:
  15.     invest_logo = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, 'invest_neutral.svg'), 96, 96)
  16. except Exception:
  17.     msg = None
  18.  
  19.  
  20. def show_about():
  21.     about = gtk.AboutDialog()
  22.     infos = {
  23.         'program-name': _('Invest'),
  24.         'logo': invest_logo,
  25.         'version': VERSION,
  26.         'comments': _('Track your invested money.'),
  27.         'copyright': 'Copyright \xc2\xa9 2004-2005 Raphael Slinckx.' }
  28.     about.set_authors([
  29.         'Raphael Slinckx <raphael@slinckx.net>'])
  30.     about.set_translator_credits(_('translator-credits'))
  31.     for prop, val in infos.items():
  32.         about.set_property(prop, val)
  33.     
  34.     about.connect('response', (lambda self: self.destroy()))
  35.     about.show_all()
  36.  
  37.